package IO第二天;

import java.util.Properties;

public class 第一种方式读取properties文件 {
    public static void main(String[] args) throws Exception{
        Properties properties = new Properties();
        properties.load(第一种方式读取properties文件.class.getClassLoader().getResourceAsStream("person.properties"));
        System.out.println(properties.get("name"));
        System.out.println(properties.get("age"));
    }
}
